package com.sihuatech.coreagent.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sihuatech.coreagent.core.communication.entity.Province;
import com.sihuatech.coreagent.mapper.ProvinceMapper;

@Service
public class ProvinceService {

	@Autowired
	private ProvinceMapper provinceMapper;
	
	public Province getProvince(int id) {
		return provinceMapper.selectById(id);
	}
	
	public List<Province> getAllProvince() {
		return provinceMapper.selectList(null);
	}
}
